package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import com.smt.common.base.BaseEntity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 日程安排表
 * 
 * @author murong
 * @email 981620741@qq.com
 * @date 2018-09-29 15:37:08
 */
@Data
@TableName("bus_schedule")
public class ScheduleEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 日程安排id
	 */
	@TableId
	private Long id;
	/**
	 * 公司id
	 */
	private Long companyId;
	/**
	 * 创建人
	 */
	private Long createdId;
	/**
	 * 日程标题
	 */
	private String title;
	/**
	 * 绑定的日期
	 */
	private Date scheduleTime;
	/**
	 * 参与人id（用，分割的字符串）
	 */
	private String participants;
	/**
	 * 优先级（0,高，1中 ，2低）
	 */
	private Integer prior;
	/**
	 * 备注
	 */
	private String remarks;
	/**
	 * 创建日期
	 */
	private Date createTime;
	/**
	 * 更新日期
	 */
	private Date updateTime;

	/**
	 * 事件id
	 */
	private Long eventManagementId;

	/**
	 *	颜色
	 */
	private String color;

	/**
	 * 项目id
	 */
	private Long projectId;

	/**
	 * 任务id
	 */
	private Long taskId;

	/**
	 * 子任务id
	 */
	private Long subTaskId;

	/**
	 * 参与人数组
	 */
	@TableField(exist = false)
	private List<Long> pIds;

	public ScheduleEntity() {
	}


	public ScheduleEntity(Long createdId, String title, Date scheduleTime,Integer prior, String remarks, Date createTime, Date updateTime,String color, Long projectId, Long taskId, Long subTaskId) {
		this.createdId = createdId;
		this.title = title;
		this.scheduleTime = scheduleTime;
		this.prior = prior;
		this.remarks = remarks;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.color = color;
		this.projectId = projectId;
		this.taskId = taskId;
		this.subTaskId = subTaskId;
	}
}
